/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package generadorva;

/**
 *
 * @author USUARIO
 */
public class Exponencial {

    private double lambda;

    public Exponencial(double lambda) {
        this.lambda = lambda;
    }

    public double generate(double u){
        return Math.log(1-u)/(-1*lambda);
    }

    public double getLambda() {
        return lambda;
    }

}
